HTTP headers |
您所在的位置:网站首页 › header type › HTTP headers |
HTTP Client hints are a set of request headers that provide useful information about the client such as device type and network conditions, and allow servers to optimize what is served for those conditions. Servers proactively requests the client hint headers they are interested in from the client using Accept-CH. The client may then choose to include the requested headers in subsequent requests. Accept-CH ExperimentalServers can advertise support for Client Hints using the Accept-CH header field or an equivalent HTML element with http-equiv attribute. Critical-CH ExperimentalServers use Critical-CH along with Accept-CH to specify that accepted client hints are also critical client hints. The different categories of client hints are listed below. User agent client hintsThe UA client hints are request headers that provide information about the user agent, the platform/architecture it is running on, and user preferences set on the user agent or platform: Sec-CH-UA ExperimentalUser agent's branding and version. Sec-CH-UA-Arch ExperimentalUser agent's underlying platform architecture. Sec-CH-UA-Bitness ExperimentalUser agent's underlying CPU architecture bitness (for example "64" bit). Sec-CH-UA-Full-Version-List ExperimentalFull version for each brand in the user agent's brand list. Sec-CH-UA-Mobile ExperimentalUser agent is running on a mobile device or, more generally, prefers a "mobile" user experience. Sec-CH-UA-Model ExperimentalUser agent's device model. Sec-CH-UA-Platform ExperimentalUser agent's underlying operation system/platform. Sec-CH-UA-Platform-Version ExperimentalUser agent's underlying operation system version. Sec-CH-UA-Prefers-Color-Scheme ExperimentalUser's preference of dark or light color scheme. Sec-CH-UA-Prefers-Reduced-Motion ExperimentalUser's preference to see fewer animations and content layout shifts. Device client hints Device-Memory ExperimentalApproximate amount of available client RAM memory. This is part of the Device Memory API. Network client hintsNetwork client hints allow a server to choose what information is sent based on the user choice and network bandwidth and latency. Downlink ExperimentalApproximate bandwidth of the client's connection to the server, in Mbps. This is part of the Network Information API. ECT ExperimentalThe effective connection type ("network profile") that best matches the connection's latency and bandwidth. This is part of the Network Information API. RTT ExperimentalApplication layer round trip time (RTT) in milliseconds, which includes the server processing time. This is part of the Network Information API. Save-Data ExperimentalA string on that indicates the user agent's preference for reduced data usage. |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |